<?php

class Notification {

    public static function NotificationBasic($notification) {
        return '
            <script>$.jGrowl(\'' . $notification . '\');</script>
        ';
    }

    public static function NotificationSticky($notification) {
        return '
            <script>$.jGrowl(\'' . $notification . '\', { sticky: true });</script>
        ';
    }

    public static function NotificationWithHeader($notification, $header) {
        return '
            <script>$.jGrowl(\'' . $notification . '\', { header: \'' . $header . '\' });</script>
        ';
    }

    public static function NotificationLongLive($notification) {
        return '
            <script>$.jGrowl(\'' . $notification . '\', { life: 10000 });</script>
            ';
    }
    
    public static function NotificationBasicButton($notification) {
        return '
            <input class="basicBtn mr10 ml10" type="button" onclick="$.jGrowl(\'' . $notification . '\');" value="Basic notification">
        ';
    }

    public static function NotificationStickyButton($notification) {
        return '
            <input class="basicBtn mr10 ml10" type="button" onclick="$.jGrowl(\'' . $notification . '\', { sticky: true });" value="Sticky notification">
        ';
    }

    public static function NotificationWithHeaderButton($notification, $header) {
        return '
            <input class="basicBtn mr10 ml10" type="button" onclick="$.jGrowl(\'' . $notification . '\', { header: \'' . $header . '\' });" value="Message with header">
        ';
    }

    public static function NotificationLongLiveButton($notification) {
        return '
            <input class="basicBtn mr10 ml10" type="button" onclick="$.jGrowl(\'' . $notification . '\', { life: 10000 });" value="Long live message">
            ';
    }

}

?>
